// 俄罗斯方块组件样式
.Tetris {
  width: 100%;
  height: 100%;
  background-color: #f2f4f5;

  // 计时器
  .Tetris-time {
    width: 100%;
    height: 0.88rem;
    text-align: center;
    line-height: 0.88rem;
    font-size: 0.36rem;
    font-weight: bold;
    color: #aeb0b6;
    background-color: #dee1e9;
  }

  // 当前分数展示
  // ------------------------------------------------------------------------------
  .Tetris-fraction {
    width: 100%;
    height: 0.88rem;
    font-size: 0.5rem;
    color: #6280c6;
    font-weight: bolder;
    text-align: center;
    line-height: 0.88rem;
    background-color: #dee1e9;
  }

  // 内容展示
  // ------------------------------------------------------------------------------
  .Tetris-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #dee1e9;
    padding-bottom: 0.6rem;
  }

  // 左边展示区
  // ================================================================
  .Tetris-content-left {
    width: 1.9rem;
    height: 6.6rem;
    text-align: center;
    font-size: 0.28rem;
    font-weight: bold;
    position: relative;
    color: #aaadb5;
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
  }

  // 分数展示
  .Tetris-content-left-fraction {
    width: 100%;
    position: absolute;
    top: 0.25rem;
    left: 0;

    // 标题
    & > p {
      margin-bottom: 0.2rem;
    }

    // 分数展示
    & > span {
      display: inline-block;
      min-width: 1.32rem;
      max-width: 1.9rem;
      font-size: 0.32rem;
      color: #deb07b;
      padding: 0.16rem 0.08rem;
      background-color: #fff;
      border-radius: 0.1rem;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }

  // 音乐按键
  // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  .Tetris-content-left-music {
    width: 0.72rem;
    height: 0.72rem;
    background-color: #fff;
    border-radius: 0.15rem;
    margin-bottom: 0.6rem;
    background-size: 50%;
  }

  // 切换为音乐后的css
  .Tetris-content-left-voice {
    background-image: url(./img/voice.png);
  }

  // 切换为静音后的css
  .Tetris-content-left-Mute {
    background-image: url(./img/Mute.png);
  }

  // 背景颜色更换按键
  // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  .Tetris-content-left-switchBackgroundColor {
    width: 0.72rem;
    height: 0.72rem;
    background-color: #fff;
    border-radius: 0.15rem;
    background-image: url(./img//clothes.png);
    background-size: 50%;
  }

  // 重开按键
  // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  .Tetris-content-left-reopen {
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 0.15rem;
    background-color: #fff;
    position: absolute;
    bottom: 0;
    background-image: url(./img//Refresh.png);
    background-size: 60%;
  }

  // 显示器自定义css
  // ================================================================
  // 游戏显示器
  .MonitorCss {
    border: solid 0.1rem #bbbfc4;
    border-radius: 0.2rem;
  }
  // 游戏显示器显示点
  .MonitorItemCss {
    width: 0.3rem !important;
    height: 0.3rem !important;
    border-radius: 0.04rem;
  }

  // 右边展示区
  // ================================================================
  .Tetris-content-right {
    width: 1.9rem;
    height: 6.6rem;
    text-align: center;
    font-size: 0.28rem;
    font-weight: bold;
    color: #aaadb5;
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  // 提示显示器
  // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  .Tetris-content-right-Monitor {
    position: absolute;
    top: 0;
    gap: 0.01rem;
    border-radius: 0.06rem;
    overflow: hidden;
  }

  // 提示显示器显示点
  .Tetris-content-rightMonitorItem {
    width: 0.2rem !important;
    height: 0.2rem !important;
    border-radius: 0.06rem;
  }

  // 难度显示
  // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  .Tetris-content-right-difficulty,
  .Tetris-content-right-eliminated {
    width: 100%;
    margin-bottom: 0.6rem;

    // 难度标题
    & > p {
      margin-bottom: 0.1rem;
    }

    // 数量显示
    & > span {
      display: inline-block;
      min-width: 1.32rem;
      max-width: 1.9rem;
      font-size: 0.32rem;
      padding: 0.16rem 0.08rem;
      background-color: #eef1f7;
      color: #000;
      border-radius: 0.1rem;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-weight: bolder;
    }
  }

  // 已消除展示
  // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  .Tetris-content-right-eliminated {
    margin-bottom: 0;
  }

  // 游戏开始暂停按键
  // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  .Tetris-content-right-start {
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 0.15rem;
    background-color: #fff;
    position: absolute;
    bottom: 0;
    background-size: 50%;
  }

  // 游戏开始展示图片
  .Tetris-content-right-play {
    background-image: url(./img/start.png);
  }

  // 游戏暂停展示图片
  .Tetris-content-right-suspend {
    background-image: url(./img/suspend.png);
  }

  // 按键操作
  // ------------------------------------------------------------------------------
  .Tetris-operation {
    width: 100%;
    position: relative;
    padding: 0.33rem 0;
    border-radius: 0.24rem 0.24rem 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f2f4f5;
    margin-top: -0.3rem;
    background-color: #f2f4f5;
    z-index: 5;
  }

  // 下移按键
  // ================================================================
  .Tetris-operation-goDown {
    width: 1.2rem;
    height: 2rem;
    background-color: #2766fb;
    border-radius: 0.3rem;
    text-align: center;
    line-height: 2rem;
    margin-right: 0.4rem;
    background-image: url(./img//MoveDown.png);
    background-size: 80%;
  }

  // 方向按键
  // ================================================================
  .Tetris-operation-direction {
    width: 5rem;
    height: 3.6rem;
    color: #2668fb;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;

    & > div {
      width: 1.6rem;
      height: 1.6rem;
      background-color: #fff;
      border-radius: 0.5rem;
      text-align: center;
      line-height: 1.6rem;
      position: absolute;
      background-size: 40%;
    }
  }

  // 上
  .Tetris-operation-direction-top {
    background-image: url(./img/top.png);
    top: 0;
  }

  // 左
  .Tetris-operation-direction-left {
    background-image: url(./img/left.png);
    left: 0;
  }

  // 下
  .Tetris-operation-direction-down {
    background-image: url(./img/down.png);
    bottom: 0;
  }

  // 右
  .Tetris-operation-direction-right {
    background-image: url(./img/right.png);
    right: 0;
  }
}
